package com.qf.pojo;

import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class Role {

	private Integer roleId;

	@NotNull(message = "游戏名称为必填项，不能为空!")
	private Integer gameId;

	@NotBlank(message = "角色名称为必填项，不能为空!")
	private String roleName;

	@NotNull(message = "角色等级为必填项，不能为空!")
	private Integer roleGrade;

	private Game game;

	@NotNull(message = "注册日期为必填项，不能为空!")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date recordDate;

	@NotNull(message = "游戏状态为必填项，不能为空!")
	private Integer status;


}
